
from frontend.roleApplication import RoleApplication
from frontend.form import Type

class TechnicianApplication(RoleApplication):

    def __init__(self):
        super(TechnicianApplication, self).__init__("Team1OR", "Technician") 
        self.register_sink_step("TakePatient", self.take_patient_form_creator, name_fields=["sequence", "PatientName", "SurgeryType"])

    def take_patient_form_creator(self, stepname, form):
       
        form.add_task_label(fields=["PatientName","SurgeryType"]) 

if __name__ == '__main__':
    app = TechnicianApplication()
    app.MainLoop()